package com.example.service;

import org.springframework.security.core.userdetails.UserDetailsService;

public interface AuthorizeService extends UserDetailsService {

    String sendValidateEmail(String email, String sessionId, boolean hasAccount); // 发送验证邮件
    String validateAndRegister(String username, String password, String email, String code, String sessionId);
    String validateAndForgot(String email, String code, String sessionId);
    boolean forgotPassword(String password, String email);
}
